package com.bestcem.xm.user.dao.impl;

import com.bestcem.xm.user.dao.UnsubscribeSettingDao;
import com.bestcem.xm.user.dao.mapper.UnsubscribeSettingMapper;
import com.bestcem.xm.user.entity.pojo.UnsubscribeSettingDO;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * 退订设置DAO实现类
 *
 * @author ympan <yuming.pan@idiaoyan.com>
 * @version v1.0
 * @date 2022/7/12 14:57
 */
@Repository
public class UnsubscribeSettingDaoImpl implements UnsubscribeSettingDao {
    @Resource
    private UnsubscribeSettingMapper unsubscribeSettingMapper;

    @Override
    public UnsubscribeSettingDO getByOrgId(String orgId) {
        return unsubscribeSettingMapper.getByOrgId(orgId);
    }

    @Override
    public int updateById(UnsubscribeSettingDO unsubscribeSettingDO) {
        return unsubscribeSettingMapper.updateById(unsubscribeSettingDO);
    }

    @Override
    public int insert(UnsubscribeSettingDO unsubscribeSettingDO) {
        return unsubscribeSettingMapper.insert(unsubscribeSettingDO);
    }
}
    